<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFeedBacksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
            Schema::create('feed_backs', function (Blueprint $table) {
                $table->increments('id');
                $table->text('content')->nullable()->comment('反馈内容');
                $table->string('desc')->nullable()->comment('描述');
                $table->integer('img_id')->nullable()->comment('图片id');
                $table->string('type')->nullable()->comment('类型');
                $table->string('phone')->nullable()->comment('联系电话');
                $table->timestamps();
                $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('feed_backs');
    }
}
